package fr.ul.ade.secunde.dev;

import android.content.Context;
import fr.ul.ade.secunde.sync.ScheduleComparator;

/**
 * Comparateur basique. Supprime tous les anciens cours et ajoute tous les
 * nouveaux cours.
 * 
 * @author Michaël Schnell
 * @since Jul 29, 2013
 * 
 * @version 1.3
 */
public class MockComparator
		extends ScheduleComparator {

	public MockComparator(long scheduleId, Context context) {
		super(scheduleId, context);
	}

	@Override
	protected void compareS() {
		while (this.oldSchedule.moveToNext()) {
			this.diff.deleteLesson(this.oldSchedule);
		}
		while (this.newSchedule.moveToNext()) {
			this.diff.insertLesson(this.newSchedule);
		}
	}

}// class MockComparator